package com.packet.cheng.config;/*
 @author zaicheng
 @version 1.0
 @date 2022-04-19
 @email zzc15847256473@163.com
 */

import com.packet.cheng.service.PersonService;
import com.packet.cheng.service.impl.ManPersonServiceImpl;
import com.packet.cheng.service.impl.WomanPersonServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class PoJoConfig {

    @Bean
    public PersonService  manPersonService(){
        return new ManPersonServiceImpl();
    }

    @Bean
    public PersonService womanPersonService(){
        return  new WomanPersonServiceImpl();
    }
}
